package com.company;

import lombok.Data;

/**
 * @author 杨东
 */
@Data
public class FunctionTest {


    static class Person {
        private String name;
        private int age;

        public String getName() {
            return name;
        }

        @Override
        public String toString() {
            return "Person{" +
                    "name='" + name + '\'' +
                    ", age=" + age +
                    '}';
        }

        public int getAge(int i) {
            return age;
        }

        public void setName(String name){
            this.name= name;

        }

        public void setAge(int age) {
            this.age = age;
        }
    }



    public static void main(String[] args) {
        Person k = new  Person();
//        ming.age=13;
//        ming.name="re";
//        System.out.println(ming.age)
//        k.setAge(89);
        k.setName("yd");
        k.setName("yd1");
        k.setAge(12);
        k.setAge(k.getAge(23));
        System.out.println(k.toString());
    }

}
